﻿namespace XXX.UI.ViewModels
{
	public class AppStartViewModel : Sidvall.UI.ViewModels.ViewModelBase
	{
		#region ViewCaption

		private string _ViewCaption;
		public string ViewCaption
		{
			get
			{
				return _ViewCaption;
			}
			set
			{
				_ViewCaption = value;
				RaisePropertyChanged("ViewCaption");
			}
		}

		#endregion
		#region WebAddress

		private string _WebAddress;
		public string WebAddress
		{
			get
			{
				return _WebAddress;
			}
			set
			{
				_WebAddress = value;
				RaisePropertyChanged("WebAddress");
			}
		}

		#endregion

		#region StartAsync

		protected override System.Threading.Tasks.Task StartAsync()
		{
			this.ViewCaption = @"This is the Start View!";
			this.WebAddress = @"http://sidvall.codeplex.com/documentation";
			return null;
		}

		#endregion
		#region OnAfterStart

		protected override void OnAfterStart()
		{
			Sidvall.UI.SystemContext.Current.ApplicationManager.Status = Sidvall.UI.ApplicationStatus.Started;
		}

		#endregion
	}
}
